/*
 * @Author: liuxiao
 * @Date: 2023-11-28 00:15:15
 * @Last Modified by: liuxiao
 * @Last Modified time: 2023-12-10 12:44:58
 * @ps: 用于用户测试
 */
const Router = require('koa-router')
const testRouter = new Router()

// const models = require('../dbModel/index.js')
// const Test = models.edu_test
const { edu_test: Test } = require('../dbModel/index.js')
testRouter.get('/test', async (ctx, next) => {
  const res = await Test.findAll()
  ctx.body = {
    data: res
  }
})

module.exports = testRouter
